package com.example.pdm_project_group_001;


import java.util.ArrayList;
import java.util.List;

import android.R.integer;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
public class Notifications {
	public static SharedPreferences sharedPref;
	public static Context a;
	
	public static List<String> textList = new ArrayList<String>();
	
	
	public static void setLastNotificationId(String lastNotification){
		SharedPreferences.Editor editor= sharedPref.edit();
		editor.putString("lastNotification", lastNotification );
		editor.commit();
	}
	
	public static String getLastNotificationId(){
		try{
			return sharedPref.getString("lastNotification", "0");
		}
		catch(Exception e){
			System.out.println("getLastNotificationId ERROR:" + e.getMessage());
			return "0";
		}
	}
	
	

}
